<template>
  <router-view v-slot="{ Component }">
    <component :is="Component" />
  </router-view>
</template>

<script>
import { get_oss_key } from '@/api/API_get_ossKey'
export default {
  methods: {
    // 定时器
    timer(fun_back, ms) {
      if (fun_back)
        window.setInterval(() => {
          fun_back()
        }, ms)
    }
  },
  created() {
    this.timer(get_oss_key, 1000 * 60 * 30)
  }
}
</script>

<style lang="less"></style>
